<%@ taglib prefix="stripes"
  uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<stripes:useActionBean binding="/ManageProjectGroupEntity.action"
  id="actionBean" />
<table align="left" height="100%" cellpadding="0" border="1">
  <stripes:errors
    beanclass="com.google.code.cisx.web.ManageProjectGroupActionBean">
    <tr>
      <td style="color: red;" colspan="2"></td>
    </tr>
  </stripes:errors>
  <c:choose>
    <c:when test="${empty actionBean.entity}">
      <tr>
        <th colspan="2">No Project Group Selected!</th>
      </tr>
    </c:when>
    <c:otherwise>
      <tr>
        <th colspan="2">${actionBean.entity.name}</th>
      </tr>
    </c:otherwise>
  </c:choose>
  <c:forEach items="${actionBean.entity.projects}" var="project">
    <tr>
      <td><stripes:link
        href="/ManageProjectEntity.action?event=View&id=${project.id}">View 
        ${project.name}
      </stripes:link></td>
      <td><stripes:link
        href="/ManageProjectEntity.action?event=Edit&id=${project.id}">Edit 
        ${project.name}        
      </stripes:link></td>
    </tr>
  </c:forEach>
</table>